package com.ruoyi.article.domain;

import com.ruoyi.ArticleCategory.domain.ArticleCategory;
import com.ruoyi.articleCollect.domain.ArticleCollect;
import com.ruoyi.articleUpvote.domain.ArticleUpvote;
import com.ruoyi.comment.domain.Comment;
import com.ruoyi.commentUpvote.domain.CommentUpvote;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 文章管理对象 article
 * 
 * @author ruoyi
 * @date 2025-01-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 分类id */
    @Excel(name = "分类id")
    private Integer categoryId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String content;

    /** 发布时间 */
    @Excel(name = "发布时间")
    private String date;

    /** 文章图片 */
    @Excel(name = "文章图片")
    private String picture;

    @Excel(name = "阅读量")
    private Long readNum;

    @Excel(name = "点赞量")
    private Long upvoteNum;

    @Excel(name = "收藏量")
    private Long collectNum;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Integer del;


    private ArticleCategory articleCategory;

    private SysUser sysUser;

    //private ArticleCollect articleCollect;
    private List<ArticleCollect> articleCollectList;

    //private ArticleUpvote articleUpvote;
    private List<ArticleUpvote> articleUpvoteList;

    private List<Comment> commentList;

}
